import request from '@/utils/request'

/**
 * 获取商品列表
 */
export function getGoodsPages(params: Record<string, any>) {
    if (uni.getStorageSync('wapShopMember')) {
        params.userId = uni.getStorageSync('wapShopMember').id;
    }
    return request.get(`pay/wallet/pageCart`, params, { isYuDao: true })
}
/**
 * 卡项激活
 */
export function assetsActive(params: Record<string, any>) {
    if (uni.getStorageSync('wapShopMember')) {
        params.userId = uni.getStorageSync('wapShopMember').id;
    }
    return request.get(`pay/wallet/active`, params, { isYuDao: true })
}
/**
 * 卡项激活
 */
export function assetsStop(params: Record<string, any>) {
    if (uni.getStorageSync('wapShopMember')) {
        params.userId = uni.getStorageSync('wapShopMember').id;
    }
    return request.get(`pay/wallet/stop`, params, { isYuDao: true })
}
